<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>app列表页</title>
    <meta name="keywords" content="app列表页"/>
    <meta name="description" content="app列表页"/>
    <link href="../css/styles_blog.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="../js/modernizr_blog.js"></script>
    <![endif]-->

    <script type="text/javascript" >

        function second() {
            // var box = document.getElementById("div_content");
            // box.innerHTML = ${userModel.user.name};
            // alert(userModel.data);

            //创建一个XmlHttpRequest文件
            var request = new XMLHttpRequest();
            //准备发送请求的数据，url;
            var url = "http://" + window.location.host
                + "/app_action/app_list_data";

            // alert(url);
            var method = "GET";
            //调用XMLHttpRequest的 open()方法
            request.open(method, url);

            //调用XMLHttpRequest的 send()方法
            request.send(null);

            //为请求添加响应函数
            request.onreadystatechange = function () {
                if (request.readyState == 4) {
                    if (request.status == 200 || request.status == 304) {

                        var box = document.getElementById("div_content");
                        box.innerHTML = request.responseText;

                    }
                }
            }
            //取消a节点的默认行为
            return false;


        }

    </script>
</head>
<body id="body_content" onload="second()">
<div th:replace="~{common/header::header}"></div>

<div class="mainContent">
    <div th:replace="~{common/left_content::pagination3}"></div>
    <div id="div_content"></div>
</div>

<!--<div th:replace="~{common/footer::footer}"></div>-->

</body>
</html>